﻿using Mapster;
using Todo.Common.Models.Todo;
using TodoListWebApi.Models;

namespace TodoListWebApi.Extensions
{
    public class MappingConfig : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            config.NewConfig<TodoItemDBEntity, TodoModel>()
                .Map(dest => dest.CreatedDate, src => src.CreatedAt);

            // 其他映射配置
        }
    }
}
